﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DynaPrecision
{
	/// <summary>
	/// 
	/// </summary>
	/// <typeparam name="T"></typeparam>
	public static class DefaultValueProvider<T>
	{
		/// <summary>
		/// Get the Default Resolution, 1e-01
		/// </summary>
		/// <returns></returns>
		public static T GetDefaultResolution()
		{
			dynamic result = 1e-10;
			return result;
		}
		/// <summary>
		/// 
		/// </summary>
		/// <returns></returns>
		public static T GetZero()
		{
			dynamic result = 0;
			return result;
		}
		/// <summary>
		/// 
		/// </summary>
		public static T Zero
		{
			get
			{
				dynamic result = 0;
				return (T)result;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		/// <param name="value"></param>
		/// <returns></returns>
		public static T GetValueFromInteger(int value)
		{
			dynamic result = value;
			return (T)result;
		}

		public static T GetValueFromDouble(double value)
		{
			dynamic result = value;
			return (T)result;
		}
	}
}
